<template>
  <div class="nuxt-error-container">
    <h1 v-if="error.statusCode === 404">来到了陌生的地方[・_・?]</h1>
    <h1 v-else>出现了一点小问题(oT-T)尸</h1>
    <NuxtLink to="/home">
      <el-button type="text">返回主页</el-button>
    </NuxtLink>
  </div>
</template>

<script>
export default {
  props: ['error'],
  layout: 'blog' // you can set a custom layout for the error page
}
</script>

<style scoped>
  .nuxt-error-container {
    text-align: center;
  }
</style>
